// 封装接口调用方法

const request = (path) => {
    let url = 'https://www.ehomespace.com/api/public/v1/'+path;
    return new Promise((resolve,reject)=>{
        // 实现接口调用
        mpvue.request({
            url:url,
            method:'get',
            success:(res)=>{
                resolve(res)
            }
        })
    })
}

export default request